/******************************************************文本框*****************************************************/
_$.RadioBoxListDict=function (target){
    var _this = this;
    _$.RadioBoxListDict.superclass.constructor.call(_this,target);
};
_$.regClass("RadioBoxListDict",_$.RadioBoxListDict);

_$.extend(_$.RadioBoxListDict,_$.RadioBoxList, {
    _cls:_$._clsPre + "RadioBoxListDict",
    _uiCls:_$._uiPreCls + "RadioBoxListDict",
    _attrProps:function(){
        var _this = this;
        var properties = _$.RadioBoxListDict.superclass._attrProps.call(_this);
        properties.addAll(["dictCode"]);
        return properties;
    },
    _attrOpts:function(){
        var _this = this;
        var opts = _$.RadioBoxListDict.superclass._attrOpts.call(_this);
        return $.extend(true,opts,{
            'dictCode':'',
            "idField":"code",
            "call":"dict.selectByDict"
        });
    },
    _loadData:function(func){
        var _this = this;

        var apiServer = _this.getOption("apiServer");
        var call = _this.getOption("call");
        var dictCode = _this.getOption("dictCode");
        var idField = _this.getOption("idField");
        var basePath = _this.getOption("basePath");
        var params = _this.getOption("params");
        if(params == null){
            params = {};
        }
        params["dictCode"]=dictCode;
        _this.data = [];

        var route = {
            "apiServer":apiServer,
            "call":call,
            "description":"查询下拉框条目"
        };

        var url= basePath + "/callService";
        var options = {
            url:url,
            route:route,
            data:params,
            callback:function(result){
                func.call(_this,result);
            }
        } ;
        $.cc.ajaxDtoRequestCommon(options);
    }
});
